package games.tankwars.entities;

public class Goal extends vooga.entities.Image
{
	private int health;
	private static int DEFAULT_HEALTH = 3;
	
	public Goal(java.awt.geom.Point2D center, java.awt.geom.Dimension2D size, String graphic)
	{
		super(center, size, graphic);
		health = DEFAULT_HEALTH;
		setDestructible(true);
	}
	
	public void reduceHealth()
	{
		health--;
	}
	
	public void setHealth(int newHealth)
	{
		health = newHealth;
	}
	
	public int getHealth()
	{
		return health;
	}
}
